import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/reset.css'

//vant组件
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);


Vue.config.productionTip = false


// 尝试从本地存储提取用户信息，并初始化状态机
let uinfo = localStorage.getItem('userInfo')
if(uinfo){
  store.commit('my/initInfoMut',JSON.parse(uinfo))
}


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
